package com.trade.service.impl;

import java.util.List;

import com.trade.dao.ICategoryDao;
import com.trade.dao.IRoleDao;
import com.trade.model.Role;
import com.trade.service.IRoleService;

public class RoleServiceImpl implements IRoleService{

private IRoleDao roleDao;
	
	@Override
	public Role getRoleById(long roleid) {
		return roleDao.load(roleid);
	}
	
	@Override
	public List<Role> getRoles()
	{
		return roleDao.getAllRoles();
	}
	
	public IRoleDao getRoleDao() {
		return this.roleDao;
	}

	public void setRoleDao(IRoleDao roleDao) {
		this.roleDao = roleDao;
	}

}


